package com.oa.hyperion.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 员工
 */
@Data
public class Employee implements Serializable {

  //id 和  权限：user 保持一致
  private Integer id;

  private String identity;
  private Date leaveTime;
  private String name;
  private String gender;
  private Date joinTime;
  private String telephone;

  //拥有三个状态: 实习:"s"， 正式员工："z", 离职：“l"
  private String status;
  private String email;
  private Integer post;

  //多表查询：岗位表
  @TableField(exist = false)
  private Post pos;


}
